package com.it.travel.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.List;

@Data
@TableName("t_category")
public class Category {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private Long createTime;
    private Long updateTime;
    private String img;
    @TableLogic
    private int isDeleted;
    @TableField(exist = false)
    private List<Category> children;
    private Integer parentId;

}
